﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace QCM.Contract1
{
    [DataContract]
    public class Categorie
    {
        [DataMember]
        public int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        [DataMember]
        public string nom;

        public string Nom
        {
            get { return nom; }
            set { nom = value; }
        }

        [DataMember]
        public string nomMere;

        public string NomMere
        {
            get { return nomMere; }
            set { nomMere = value; }
        }


        public Categorie(int id, string nomCat, string nomCatMere)
        {
            this.Id = id;
            this.Nom = nomCat;
            this.NomMere = nomCatMere;
        }
    }
}
